package com.dragon.datastructure.queue;

/**
 * 数组模拟队列的测试
 *
 * @author dragon
 * @since 2019/12/17
 */
public class ArrayQueueTest {

    public static void main(String[] args) {
        ArrayQueue arrayQueue = new ArrayQueue();
        arrayQueue.enqueue(1);
        arrayQueue.enqueue(2);
        arrayQueue.enqueue(4);
        System.out.println(arrayQueue);
        System.out.println("arrayQueue的元素个数:" + arrayQueue.size());

        arrayQueue.dequeue();

        arrayQueue.dequeue();

        arrayQueue.enqueue(134);

        arrayQueue.enqueue(123);

        System.out.println(arrayQueue.toString());
        System.out.println("arrayQueue的元素个数:" + arrayQueue.size());
    }
}
